<?php
/**
 * Each engineer has a duty to keep the code elegant
 * Created by wolffy.
 * Author @wolffy<13750088090@sina.cn>
 * Date: 2018/8/12
 * Time: 11:40
 */
namespace App\Repositories;

use App\Models\UserIdentityCheck;

class UserIdentityCheckRepository
{
    /**
     * 创建用户认证审核
     * @param array $params
     * @return mixed
     */
    public function create(array $params)
    {
        return UserIdentityCheck::create($params);
    }

    /**
     * 根据id获取用户认证审核资料
     * @param $id
     * @return mixed
     */
    public function ByUserId($id)
    {
        return UserIdentityCheck::where('user_id', $id)->first();
    }
    
}